package com.qire.manhua.dal.converter;

import com.qire.antsbinder.dal.ParamsConverter;

/**
 * 参数转换器：boolean 转 int
 * 如果为true 则为 1, 否则为0
 */
public class BooleanToIntConverter implements ParamsConverter<Integer, Boolean> {
    @Override
    public Integer change(Boolean value) {
        return value ? 1 : 0;
    }
}
